package org.nvframe.component.property.operation;

public class Multiplication implements Operation {
	
	private int multiplyValInt;
	private float multiplyValFloat;
	private double multiplyValDouble;
	
	public Multiplication(int multiplyVal) {
		this.multiplyValInt = multiplyVal;
	}	
	
	public Multiplication(float multiplyVal) {
		this.multiplyValFloat = multiplyVal;
	}
	
	public Multiplication(double multiplyVal) {
		this.multiplyValDouble = multiplyVal;
	}
	
	@Override
	public int getResult(int orgVal) {
		return Math.round(orgVal * multiplyValInt);
	}

	@Override
	public float getResult(float orgVal) {
		return orgVal * multiplyValFloat;
	}

	@Override
	public double getResult(double orgVal) {
		return orgVal * multiplyValDouble;
	}

}
